package com.dingreading.cloud.subject.util;


import com.dingreading.cloud.subject.entity.CourseDataLog;

public class CourseUtil {

    /**
     * 创建叮叮学院视频观看或资料下载记录
     */
    public static CourseDataLog newDataLog(
            int type, String corpUid, String storeUid, String storeName, String staffUid, String staffName,
            Long courseId, String courseName, Long videoId, String videoName
    ) {
        CourseDataLog log = new CourseDataLog();
        log.setType(type);
        log.setCorpUid(corpUid);
        log.setStoreUid(storeUid);
        log.setStoreName(storeName);
        log.setStaffUid(staffUid);
        log.setStaffName(staffName);
        log.setCourseId(courseId);
        log.setCourseName(courseName);
        log.setVideoId(videoId);
        log.setVideoName(videoName);
        return log;
    }

}
